import random

def timeChouJiang(num):
    time = 0
    print('你发动了一次',num,'连')
    whileTime = num
    while whileTime > 1:
        time += 1
        A_1 = random.randint(1,6000)
        whileTime = whileTime - 1
        if A_1 == 1:
            goldR = random.randint(1,9)
            gold = ['甘雨','甘雨','甘雨','甘雨','迪卢克','刻晴','七七','莫娜']
            print('金',gold[goldR],'这一发不是保底哦')
            time = 0
        elif time % 180 == 0:
            print('金 甘雨 这一发是大保底')
        elif time % 90 == 0:
            goldR = random.randint(1,9)
            gold = ['甘雨','甘雨','甘雨','甘雨','迪卢克','刻晴','七七','莫娜']
            print('金',gold[goldR],'这一发是小保底')
        elif 1 < A_1 <= 300:
            purpleR = random.randint(0,30)
            purple = ['砂糖','班尼特','菲谢尔','辛焱','迪奥娜','重云','诺艾尔','凝光','行秋','北斗','香菱','雷泽','芭芭拉','弓藏','祭礼弓','绝弦','西风猎弓','昭心','祭礼残章','流浪乐章','西风秘典','西风长枪','匣里灭辰','雨栽','祭礼大剑','钟剑','西风大剑','匣里龙吟','祭礼剑','笛剑','西风剑']
            print('紫',purple[purpleR])
        elif time % 10 == 0:
            purpleR = random.randint(0,30)
            purple = ['砂糖','班尼特','菲谢尔','辛焱','迪奥娜','重云','诺埃尔','凝光','行秋','北斗','香菱','雷泽','芭芭拉','弓藏','祭礼弓','绝弦','西风猎弓','昭心','祭礼残章','流浪乐章','西风秘典','西风长枪','匣里灭辰','雨栽','祭礼大剑','钟剑','西风大剑','匣里龙吟','祭礼剑','笛剑','西风剑']
            print('保底,紫',purple[purpleR])
        elif 300< A_1 <= 6000:
            blueR = random.randint(0,12)
            blue = ['弹弓','神射手之誓','鸦羽弓','翡玉法球','讨龙英杰谭','魔导绪论','黑缨枪','以理服人','沐浴龙血的剑','铁影阔剑','飞天御剑','黎明神剑','冷刃']
            print('蓝',blue[blueR],time)

        return 0

def run():
    # 程序开始运行呐
    print ('''
       ____                _     _         ___                            _   
    / ___| ___ _ __  ___| |__ (_)_ __   |_ _|_ __ ___  _ __   __ _  ___| |_ 
    | |  _ / _ \\ '_ \\/ __| '_ \\| | '_ \\   | || '_ ` _ \\| '_ \\ / _` |/ __| __|
    | |_| |  __/ | | \\__ \\ | | | | | | |  | || | | | | | |_) | (_| | (__| |_ 
    \\____|\\___|_| |_|___/_| |_|_|_| |_| |___|_| |_| |_| .__/ \\__,_|\\___|\\__|
                                                        |_|                   ''')
    print ('                                                         by Cha_Shao')

    while True:
        num = input('请输入 单发 or 10连 (输入0以退出) > ')
        num_int = int(num)
        if num_int != 0:
            timeChouJiang(num_int)
        else:
            break

    return 0

if __name__ == '__main__':
    run()
    # 看到Bye表示程序成功运行，否则为异常
    print("Bye!")